const Router = require('koa-router')
const router = new Router()

router.get('/404.html', async (ctx) => {
  ctx.response.status = 200
  ctx.config.title = '404未找到当前页面_元翔职校'
  ctx.config.description = '404未找到当前页面，元翔职校'
  ctx.config.keyword = '404,未找到当前页面,元翔职校'

  await ctx.render('404.ejs', {
    config: ctx.config
  })
})

module.exports = router